﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SDF.Plugin.Misc.SAPAdapter
{
    public class RouteAreaRegistration: AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "SAP";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "SAP_default",
                "SAP/{controller}/{action}/{id}",
                new { controller = "SAPAdapter", action = "Index", area = "SAP", id = "" },
                new[] { "SDF.Plugin.Misc.SAPAdapter.Controllers" }
            );
        }
    }
}